package com.woniuxy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.woniuxy.domain.Seat;
import com.woniuxy.mapper.SeatMapper;
import com.woniuxy.service.SeatService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wuyanzu
 * @since 2021-05-26
 */
@Service
public class SeatServiceImpl extends ServiceImpl<SeatMapper, Seat> implements SeatService {

    @Override
    public List<Seat> selectSeatByRid(int rid) {
        QueryWrapper<Seat> wrapper = new QueryWrapper<>();
        wrapper.eq("r_id",rid);
        return this.list(wrapper);
    }
}
